<extend name="index::index" />
<block name="title"><title>user</title></block>
<block name="nav">
	<ul class="list-unstyled list">
		<empty name="login">
			<li>
			<a href="{:U('Index/login')}" class="anchorLink"><i class="icon-road scolor"></i>登录</a>
			</li>
			<li>
			<a href="{:U('Index/reg')}" class="anchorLink"><i class="icon-road scolor"></i>注册</a>
			</li>
			<else />
			<li>
			<a href="{:U('User/index',['id'=>$login['id']])}" style="text-transform:none;"><i class="icon-road scolor"></i><span style="color:#fff;">欢迎{$login['name']}</span></a>
			</li>
			<li>
			<a href="{:U('Index/loginout')}" class="anchorLink"><i class="icon-road scolor"></i>退出</a>
			</li>
		</empty>
		<li><a href="{:U('Index/index')}" class="anchorLink"><i class="icon-home scolor"></i>主页</a></li>
		<li><a href="#.team" class="anchorLink"><i class="icon-user scolor"></i>订单详情</a></li>
		<li><a href="{:U('User/reset')}" class="anchorLink"><i class="icon-retweet scolor"></i>重置密码</a></li>
	</ul>
</block>
<block name="addver">
</block>
<block name="team">
</block>
<block name="main">
	<div class="team"><h3>个人信息</h3></div>
	<div class="bor hidden-xs"></div>
	<div style="min-height:560px; ">
    <form action="{:U('User/rwrite')}" method="post" enctype="multipart/form-data">
    	<table class="table" border="1" cellspacing="0" cellpadding="5" align="center" >
            <tr>
              <td bgcolor="#ccc">用户名 <input type="text" name="name" value="{$list['uname']}"></td>
            </tr>     
            <tr>
              <td >头像 <input type="file" name="pic"/>
              </td>
            </tr>
            <tr>
              <td bgcolor="#ccc">性别 <input type="text" name="sex" value="{$list['ux']}"></td>
            </tr>
            <tr>
              <td >年龄 <input type="text"  name="age" value="{$list['ufg']}"></td>
            </tr>
            <tr>
              <td bgcolor="#ccc">电话 <input type="text" name="tel" value="{$list['uft']}"></td>
            </tr>
            <tr>
              <td>生日 <input type="text" name="birthday" value="{$list['ufb']}"></td>
            </tr>
            <tr>
              <td bgcolor="#ccc">邮箱 <input type="text" name="email" value="{$list['ufe']}"></td>
            </tr>
            <tr>
              <td>qq &nbsp; <input type="text"  name="qq" value="{$list['ufq']}"></td>
            </tr>
      </table>
      <button type="submit" style="width:200px;height:40px;border:none;background:#DB453E;float:right;">确认</button>
    </form>
  </div>
</block>
